package com.originskyseed.platform.user.service;

import java.util.List;
import java.util.Map;

import com.originskyseed.platform.core.base.BasePage;
import com.originskyseed.platform.user.model.UserCumulativeCharge;

/**
 * 累充明细表Service接口类（OSI_USER_CUMULATIVE_CHARGE）
 * 
 * @author Tangwanghui
 */
public interface IUserCumulativeChargeService {

	/**
	 * 删除记录
	 * 
	 * @param id
	 * @return
	 * @throws Exception
	 */
	public int deleteByPrimaryKey(String id) throws Exception;

	/**
	 * 批量删除记录
	 * 
	 * @param ids
	 * @return
	 * @throws Exception
	 */
	public int deleteByPrimaryKeys(List<String> ids) throws Exception;

	/**
	 * 插入记录
	 * 
	 * @param record
	 * @return
	 * @throws Exception
	 */
	public int insert(UserCumulativeCharge record) throws Exception;

	/**
	 * 插入记录（仅非空值字段）
	 * 
	 * @param record
	 * @return
	 * @throws Exception
	 */
	public int insertSelective(UserCumulativeCharge record) throws Exception;




	/**
	 * 插入记录（仅非空值字段）
	 *
	 * @param record
	 * @return
	 * @throws Exception
	 */
	public int insertSelective(String tenantCode,UserCumulativeCharge record) throws Exception;
	/**
	 * 更新记录
	 * 
	 * @param record
	 * @return
	 * @throws Exception
	 */
	public int updateByPrimaryKey(UserCumulativeCharge record) throws Exception;

	/**
	 * 更新记录（仅非空值字段）
	 * 
	 * @param record
	 * @return
	 * @throws Exception
	 */
	public int updateByPrimaryKeySelective(UserCumulativeCharge record) throws Exception;

	/**
	 * 查询记录
	 * 
	 * @param id
	 * @return
	 * @throws Exception
	 */
	public UserCumulativeCharge selectByPrimaryKey(String id) throws Exception;

	/**
	 * 查询记录,根据渠道id,和累充类型查询
	 *
	 * @param
	 * @return
	 * @throws Exception
	 */
	public UserCumulativeCharge selectByChannelSubIdAndType(String tenantCode,String channelSubId,String type) throws Exception;

	/**
	 * 查询列表
	 * 
	 * @param record
	 * @return
	 * @throws Exception
	 */
	public List<UserCumulativeCharge> selectList(UserCumulativeCharge record) throws Exception;

	/**
	 * 分页查询列表
	 * 
	 * @param params
	 * @param page
	 * @return
	 * @throws Exception
	 */
	public BasePage<UserCumulativeCharge> selectListByPage(Map<String, Object> params, BasePage<UserCumulativeCharge> page) throws Exception;


	/**
	 * 分页查询列表
	 *
	 * @param params
	 * @param page
	 * @return
	 * @throws Exception
	 */
	public BasePage<UserCumulativeCharge> selectListRelUserByPage(Map<String, Object> params, BasePage<UserCumulativeCharge> page) throws Exception;

	/**
	 * 查询列表
	 *
	 * @param params
	 * @return
	 * @throws Exception
	 */
	public List<UserCumulativeCharge> selectListRelUserByMap(Map<String, Object> params) throws Exception;
}